import React from 'react';
import './App.css'
import { connect } from 'react-redux';
import { withRouter, RouteComponentProps } from 'react-router';

import GrievePortal from 'component/portal/GrievePortal';

import AppRouter from "./router/app";

export interface IAppProps extends RouteComponentProps {
}

export interface IAppState {
  shouldGrieve:boolean
}

class App extends React.Component<IAppProps, IAppState> {

  constructor(props: IAppProps) {
    super(props);

    this.state = {
      shouldGrieve:false,
    }
  }
  componentDidMount() {
  }

  public render() {
    return (
        <>
          {this.state.shouldGrieve?<GrievePortal/>:null}
            <AppRouter/>
        </>


    );
  }
}


const WithConnect = connect()(App)

export default withRouter(WithConnect)
